<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <title>人车人</title>
    <link rel="stylesheet" href="/assets/css/common.css" />
	<link rel="stylesheet" href="/assets/css/iconfont/iconfont.css" />
    <link rel="stylesheet" href="/assets/css/progress.css">
</head>
<body>
<!--头部信息-->
<header>
    <div id="header">
        <div id="goback">
            <i class="inlineBlockImg"></i>
        </div>
        <a href="#"  class="inlineBlockImg" id='uploading'></a>
    </div>
    <div id="progressLogo">
         <img src="" alt="" style="width:9rem;height:9rem">
    </div>
</header>

<!--订单详细信息-->
<section>
    <p>订单详情</p>
    <ul id="detail">
        <li>
            <span>合作商 :</span>
            <span id="partner"></span>
        </li>
        <li>
            <span>产品类型 :</span>
            <span id="projectType"></span>
        </li>
        <li>
            <span>期数 :</span>
            <span id="issue"></span>
        </li>
        <li>
            <span>客户姓名 :</span>
            <span id="userName"></span>
        </li>
        <li>
            <span>联系电话 :</span>
            <span id="phoneNum"></span>
        </li>
    </ul>
</section>
<!--底部信息-->
<footer>
    <div id="progressIsOk">
        <a href="/userCenter/uploadInfo"   class="inlineBlockImg"></a>
    </div>
    <div id="progressIsIng">
        <a class="inlineBlockImg"></a>
    </div>
    <div id="progressIsDie">
        <ol id="progressIsDie_text">
            <li>222222222222222</li>
        </ol>
        <div id="progressIsDie_logo"></div>
    </div>
</footer>


<script src="/assets/js/jquery-3.1.1.min.js"></script>
<script src="/assets/js/fastclick.min.js"></script>
<script src="/assets/js/xxsg.js"></script>
<script>
	$(function(){
		$('#goback').click(function(e){
			e.preventDefault();
			/* window.history.go(-1); */
			location.href='/userCenter/orderList';
			
		})
		
		$('#uploading').click(function(e){
			e.preventDefault();
			window.history.go(0);
		})
		
		$.ajax({
			url:'/userCenter/getCustomerInfo',
			type:'get',
			success:function(data){
				console.log(data);
				
				var progress = data.progress,
					descMsg = data.descMsg;
				if( progress == 0 ){//申请中
					$('#progressLogo img').attr('src','/assets/img/图标审核中@2x.png');
					$('#progressIsIng').css({display:'block'});
				} 
				if( progress == 6 ){//拒绝
					$('#progressLogo img').attr('src','/assets/img/图标未通过@2x.png');
					$('#progressIsDie').css({display:'block'});
					if(descMsg != null){
						$('#progressIsDie_text li').html(descMsg);
					}
				}
				if( progress == 1 ){//初审通过，完善资料
					$('#progressLogo img').attr('src','/assets/img/图标审核通过@2x.png');
					$('#progressIsOk').css({display:'block'});
				}
				if( progress == 2 ){//完善资料中，显示资料页面
					$('#progressLogo img').attr('src','/assets/img/图标审核通过@2x.png');
					$('#progressIsOk').css({display:'block'});
				} 
				
				if( data.term == null){
					data.term = '暂无';
				}
				
				$('#partner').html(data.Operator);
				$('#projectType').html(data.itemType);
				$('#issue').html(data.term);
				$('#userName').html(data.name);
				$('#phoneNum').html(data.phone);
				
			}
		})
		
		
		
	})
</script>
</body>
</html>